﻿using SmartPlant.Model;
using SqlSugar;
using System;

namespace DbContext
{
    /// <summary>
    ///
    ///</summary>
    [SugarTable("PRESSURE")]
    public class Pressure : MetaDataEntity
    {
        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "SITE_ID")]
        public decimal SiteId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PLANT_ID")]
        public decimal PlantId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "AREA_ID")]
        public decimal AreaId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "UNIT_ID")]
        public decimal UnitId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_NUM")]
        public decimal ChgNum { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "USER_NAME")]
        public string UserName { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_STATUS")]
        public string ChgStatus { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_DATE")]
        public DateTime? ChgDate { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_RANGE_MAX")]
        public decimal? PdPRangeMax { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_RANGE_MIN")]
        public decimal? PdPRangeMin { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_RANGE_NOR")]
        public decimal? PdPRangeNor { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_RANGE_UID")]
        public string PdPRangeUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_ALARM_LOW")]
        public decimal? PdPAlarmLow
        {
            get
            {
                return _PdPAlarmLow;
            }
            set
            {
                _PdPAlarmLow = value;
                OnPropertyChanged(nameof(PdPAlarmLow));
            }

        }
        private decimal? _PdPAlarmLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_ALARM_LOW_LOW")]
        public decimal? PdPAlarmLowLow
        {
            get
            {
                return _PdPAlarmLowLow;
            }
            set
            {
                _PdPAlarmLowLow = value;
                OnPropertyChanged(nameof(PdPAlarmLowLow));
            }

        }
        private decimal? _PdPAlarmLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_ALARM_HIGH")]
        public decimal? PdPAlarmHigh
        {
            get
            {
                return _PdPAlarmHigh;
            }
            set
            {
                _PdPAlarmHigh = value;
                OnPropertyChanged(nameof(PdPAlarmHigh));
            }

        }
        private decimal? _PdPAlarmHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_ALARM_HIGH_HIGH")]
        public decimal? PdPAlarmHighHigh
        {
            get
            {
                return _PdPAlarmHighHigh;
            }
            set
            {
                _PdPAlarmHighHigh = value;
                OnPropertyChanged(nameof(PdPAlarmHighHigh));
            }

        }
        private decimal? _PdPAlarmHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_TRIP_LOW")]
        public decimal? PdPTripLow
        {
            get
            {
                return _PdPTripLow;
            }
            set
            {
                _PdPTripLow = value;
                OnPropertyChanged(nameof(PdPTripLow));
            }

        }
        private decimal? _PdPTripLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_TRIP_LOW_LOW")]
        public decimal? PdPTripLowLow
        {
            get
            {
                return _PdPTripLowLow;
            }
            set
            {
                _PdPTripLowLow = value;
                OnPropertyChanged(nameof(PdPTripLowLow));
            }

        }
        private decimal? _PdPTripLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_TRIP_HIGH")]
        public decimal? PdPTripHigh
        {
            get
            {
                return _PdPTripHigh;
            }
            set
            {
                _PdPTripHigh = value;
                OnPropertyChanged(nameof(PdPTripHigh));
            }

        }
        private decimal? _PdPTripHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_TRIP_HIGH_HIGH")]
        public decimal? PdPTripHighHigh
        {
            get
            {
                return _PdPTripHighHigh;
            }
            set
            {
                _PdPTripHighHigh = value;
                OnPropertyChanged(nameof(PdPTripHighHigh));
            }

        }
        private decimal? _PdPTripHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_TRIP_ALARM_UID")]
        public string PdPTripAlarmUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_TRAC_JACET")]
        public string PdPTracJacet { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_VALVTEND")]
        public string PdPValvtend { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_CNTRL_PNT_MIN")]
        public decimal? PdPCntrlPntMin { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_CNTRL_PNT_MAX")]
        public decimal? PdPCntrlPntMax { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_CNTRL_PNT_NOR")]
        public decimal? PdPCntrlPntNor { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_CNTRL_PNT_UID")]
        public string PdPCntrlPntUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PROJ_ID")]
        public decimal ProjId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CMPNT_ID", IsPrimaryKey = true)]
        public decimal CmpntId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_STAT", IsPrimaryKey = true)]
        public string PdStat { get; set; } = "R";

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "REV_ID")]
        public decimal RevId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "DWG_ID")]
        public decimal DwgId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_RANGE_UFLG")]
        public string PdPRangeUflg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_TRIP_ALARM_UFLG")]
        public string PdPTripAlarmUflg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_DIF_PRESS_UID")]
        public string PdPDifPressUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_KIND_OF_PRESSURE")]
        public string PdPKindOfPressure { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_VIEW_DIF_PRESSURE_FLAG")]
        public string PdPViewDifPressureFlag { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_DIF_RANGE_UID")]
        public string PdPDifRangeUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_VIEW_DIF_RANGE_FLAG")]
        public string PdPViewDifRangeFlag { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_DIF_TRIP_ALARM_UID")]
        public string PdPDifTripAlarmUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_VIEW_DIF_TRIP_ALARM_FLAG")]
        public string PdPViewDifTripAlarmFlag { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ENG_PROJ_ID")]
        public decimal? EngProjId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ENG_REF_ID")]
        public decimal? EngRefId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_TRIP_HIGH_HIGH_HIGH")]
        public decimal? PdPTripHighHighHigh
        {
            get
            {
                return _PdPTripHighHighHigh;
            }
            set
            {
                _PdPTripHighHighHigh = value;
                OnPropertyChanged(nameof(PdPTripHighHighHigh));
            }

        }
        private decimal? _PdPTripHighHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_TRIP_LOW_LOW_LOW")]
        public decimal? PdPTripLowLowLow
        {
            get
            {
                return _PdPTripLowLowLow;
            }
            set
            {
                _PdPTripLowLowLow = value;
                OnPropertyChanged(nameof(PdPTripLowLowLow));
            }

        }
        private decimal? _PdPTripLowLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_ALARM_HIGH_HIGH_HIGH")]
        public decimal? PdPAlarmHighHighHigh
        {
            get
            {
                return _PdPAlarmHighHighHigh;
            }
            set
            {
                _PdPAlarmHighHighHigh = value;
                OnPropertyChanged(nameof(PdPAlarmHighHighHigh));
            }

        }
        private decimal? _PdPAlarmHighHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_P_ALARM_LOW_LOW_LOW")]
        public decimal? PdPAlarmLowLowLow
        {
            get
            {
                return _PdPAlarmLowLowLow;
            }
            set
            {
                _PdPAlarmLowLowLow = value;
                OnPropertyChanged(nameof(PdPAlarmLowLowLow));
            }

        }
        private decimal? _PdPAlarmLowLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_UNIT_PERCENT")]
        public string PdUnitPercent { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CASE_ID", IsPrimaryKey = true)]
        public decimal CaseId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_GEN_ID")]
        public decimal PdGenId { get; set; }
    }
}